var express = require('express');
var router = express.Router();
const Point = require('../moduls/point');

router.get('/', async function (req, res, next) {
    const points = await Point.find();
    res.status(200).json(points);    
})